<!--缓存-列表页-->
<template>
  <div class="listIndex">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>
<script>
import listData from "./listData";
export default {
  // 为了作缓存效果运行 npm run dev请求：https://mall.faw-vw.com，可需求传参不老需要登录
  /*
  实现目的：keep-alive缓存
  
  */
  data() {
    return {};
  },
  activated() {},
  components: {
    listData,
  },
  beforeRouteEnter(to, from, next) {},
  methods: {},
};
</script>
